//
//  DateBaseManager.h
//  ToYourHeartNews
//
//  Created by XJing on 16/1/29.
//  Copyright © 2016年 www.lanou3g.com 蓝鸥. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Videomodel.h"
#import <sqlite3.h>
@interface DateBaseManager : NSObject
{
    //创建一个数据库成员变量 用于访问数据库
    sqlite3 *dbPoint;
}
//打开数据库
-(void)openDB;
//关闭数据库
-(void)closeDB;
//创建表
-(void)createTable;
//删除表
-(void)dropTable;
//增
-(void)insertVideo:(Videomodel *)m;
//删
-(void)deleteVideoWithId:(NSInteger)videoId;
//改
-(void)updateVideo:(Videomodel *)newM withId:(NSInteger)VideoId;
//查
-(NSMutableArray *)select;
//单例模式 创建数据库
+(DateBaseManager *)shareInstance;
@end
